package com.zoulj.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 用户表
 * @Date:   2021-06-27
 */
@Data
@TableName("user_info")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="user_info对象", description="用户表")
public class UserInfoDO {
    
	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
	private Integer id;
	/**名称*/
    @ApiModelProperty(value = "名称")
	private String name;
	/**密码*/
    @ApiModelProperty(value = "密码")
	private String password;
	/**性别: 1---男 0--女*/
    @ApiModelProperty(value = "性别: 1---男 0--女")
	private Integer gender;
	/**年龄*/
    @ApiModelProperty(value = "年龄")
	private Integer age;
	/**电话号码*/
    @ApiModelProperty(value = "电话号码")
	private String telephone;
	/**注册形式*/
    @ApiModelProperty(value = "注册形式")
	private String registerMode;
	/**用户状态 0--正常 1--删除*/
    @ApiModelProperty(value = "用户状态 0--正常 1--删除")
	private Integer isDeleted;
	/**用户等级 又0-10 等级逐渐提高*/
    @ApiModelProperty(value = "用户等级 又0-10 等级逐渐提高")
	private Integer userLevel;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date gmtCreate;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
	private Date gmtModified;
}
